<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// Route::get('/menu', 'Weixin\MenuController@index');  //微信的菜单选项

Route::any('/weixin', 'Weixin\UserController@show');
Route::get('/info', 'Weixin\UserController@info');
Route::group(['middleware' => ['web', 'wechat.oauth:snsapi_base']], function () {
		Route::get('/', 'IndexController@index');								//首页			
		Route::resource('user', 'UserController');								//个人中心
		Route::resource('order', 'OrderController');							//工单管理
		// Route::get('bumenyuan', 'OrderController@bumenyuan');				//工单管理部门筛选员工
		Route::post('order/chaxun', 'OrderController@chaxun');					//工单管理筛选查询
		Route::get('xiadan','XiadanController@index');							//工单管理下单调用页面
		Route::post('xiadan/sousuo', 'XiadanController@sousuo');				//工单管理客户搜索
		Route::post('xiadan/tianjia', 'XiadanController@tianjia');				//工单管理工单添加
		Route::post('xiadan/customer', 'XiadanController@customer');			//工单管理客户添加
		Route::get('chengjiao/{id}','ChengjiaoController@index');				//工单详情调用页面
		Route::post('chengjiao/xiugai', 'ChengjiaoController@xiugai');			//工单详情修改
		Route::get('gendan/{id}','ChengjiaoController@gendan');					//工单详情跟单记录调用页面
		Route::post('chengjiao/gendantianjia', 'ChengjiaoController@gendantianjia');//工单详情跟单记录执行添加
		Route::get('deal/tianjia/{id}','ChengjiaoController@tianjia');			//成交单录入页面
		Route::post('chengjiao/luru', 'ChengjiaoController@luru');				//成交单执行添加
		Route::get('deal/shoukuan/{id}','ChengjiaoController@shoukuan');		//成交单收款添加页面
		Route::get('deal/zhanghao','ChengjiaoController@zhanghao');				//成交单收款账号查询
		Route::post('shoukuantianjia', 'ChengjiaoController@shoukuantianjia');	//成交单执行收款添加
		Route::post('filetianjia', 'ChengjiaoController@filetianjia');			//成交单文件上传
		Route::get('deal/qingkuan/{id}','ChengjiaoController@qingkuan');		//成交单请款添加页面
		Route::get('deal/zhanghu','ChengjiaoController@zhanghu');				//成交单请款账户查询
		Route::get('deal/qkzhanghao','ChengjiaoController@qkzhanghao');			//成交单请款账号查询
		Route::post('qingkuantianjia', 'ChengjiaoController@qingkuantianjia');	//成交单执行请款添加
		Route::get('deal/huifang/{id}','ChengjiaoController@huifang');			//成交单回访记录管理
		Route::post('huifangtianjia', 'ChengjiaoController@huifangtianjia');	//成交单执行请款添加
		Route::get('shenqinghesuan','ChengjiaoController@shenqinghesuan');		//成交单申请核算
		Route::get('kehu','KehuController@index');								//客户管理导航栏页面
		Route::get('kehulist','KehuController@kehulist');						//客户管理客户列表
		Route::get('kehuguanhuai','KehuController@kehuguanhuai');				//客户管理客户关怀
		Route::get('youkelist','KehuController@youkelist');						//客户管理游客列表
		Route::get('youkeguanhuai','KehuController@youkeguanhuai');				//客户管理游客关怀
		Route::get('huifangdiaocha','KehuController@huifangdiaocha');			//客户管理回访调查
		Route::post('kehusousuo','KehuController@kehusousuo');					//客户管理客户筛选查询
		Route::post('customerduanxin','KehuController@customerduanxin');		//客户管理发送客户短信
		Route::post('kehubianji','KehuController@kehubianji');					//客户管理资料编辑页面
		Route::post('customerbianji','KehuController@customerbianji');			//客户管理资料执行编辑
		Route::get('kehushengri','KehuController@kehushengri');					//客户生日短信发送
		Route::post('youkesousuo','KehuController@youkesousuo');				//客户管理客户筛选查询
		Route::post('youkeduanxin','KehuController@youkeduanxin');				//客户管理发送游客短信
		Route::get('youkeshengri','KehuController@youkeshengri');				//游客生日短信发送
		Route::post('huifangsousuo','KehuController@huifangsousuo');			//客户管理客户筛选查询








  
 
 
  


		Route::get('lvyouleixing','OrderController@lvyouleixing');				//旅游类型ajax判断旅游地点
		Route::get('hetongleixing','ChengjiaoController@hetongleixing');		//合同类型ajax判断合同编号
});
